package JunitTests;

import ca.etsmtl.log210.modeles.Adresse;
import ca.etsmtl.log210.modeles.BonCommande;
import ca.etsmtl.log210.modeles.Client;
import ca.etsmtl.log210.modeles.CommandLineItem;
import ca.etsmtl.log210.modeles.Menu;
import ca.etsmtl.log210.modeles.Plat;
import ca.etsmtl.log210.modeles.Restaurant;

public class TestBonCommande {

	public static void main(String[] args){
		BonCommande bc1 = new BonCommande(new Client());
		bc1.addCommandLineItem(new CommandLineItem(new Restaurant("PizzaLicious", "fkin delicious pizza", new Adresse(), new Menu()), new Plat(1), 10));
		bc1.addCommandLineItem(new CommandLineItem(new Restaurant("DonutLand", "doh nuts!", new Adresse(), new Menu()), new Plat(2), 20));
		bc1.addCommandLineItem(new CommandLineItem(new Restaurant("SpagatKing", "want some meet ballz?", new Adresse(), new Menu()), new Plat(3), 30));
		bc1.addCommandLineItem(new CommandLineItem(new Restaurant("BurpaBurger", "Burp a Burger", new Adresse(), new Menu()), new Plat(4), 40));
		
		BonCommande bc2 = new BonCommande(new Client());
		bc2.addCommandLineItem(new CommandLineItem(new Restaurant("PizzaLicious", "fkin delicious pizza", new Adresse(), new Menu()), new Plat(1), 10));
		bc2.addCommandLineItem(new CommandLineItem(new Restaurant("DonutLand", "doh nuts!", new Adresse(), new Menu()), new Plat(2), 20));
		bc2.addCommandLineItem(new CommandLineItem(new Restaurant("SpagatKing", "want some meet ballz?", new Adresse(), new Menu()), new Plat(3), 30));
		bc2.addCommandLineItem(new CommandLineItem(new Restaurant("BurpaBurger", "Burp a Burger", new Adresse(), new Menu()), new Plat(4), 40));
		
		BonCommande bc3 = bc1.clone();
		System.out.println("test clone(true):" + bc1.equals(bc3));
		
		System.out.println("test equals(true): " + bc1.equals(bc1));
		System.out.println("test pas equals(false): " + bc1.equals(bc2));
		
		
		//System.out.println(bc1);
		//System.out.println(bc2);
		/*
		System.out.println(bc1.getCommandLineItem(0));
		System.out.println(bc1.getCommandLineItem(1));
		System.out.println(bc1.getCommandLineItem(2));
		System.out.println(bc1.getCommandLineItem(3));
		*/
	}
}
